<!doctype html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<div class="modal hide popup" id="pricesModal" tabindex="-1">
   <div class="modal-header">
		<button type="button" class="close" data-dismiss="modal">×</button>
		<h3 id="myModalLabel">
			<g:message code="prices.title" />
		</h3>
	</div>
   <div class="modal-body">
   		<h4><g:message code="prices.per.copy" /></h4> 		   		
   		<table class="table table-striped">
			<thead>
				<tr>					
					<td><g:message code="prices.size" /></td>
					<td><g:message code="prices.paper" /></td>
					<td><g:message code="prices.border" /></td>
					<td><g:message code="prices.price" /></td>
				</tr>
			</thead>
			<tbody>
			<g:each in="${photographer?.pricesConfiguration?.prices}" status="i" var="photoPrice">
				<tr>									
					<td>${fieldValue(bean: photoPrice, field: "size")}</td>
					<td><g:message code="prices.anyPaper" /></td>
					<td><g:message code="prices.withOrWithoutBorder" /></td>
					<td>${fieldValue(bean: photoPrice, field: "price")}</td>
				
				</tr>
			</g:each>
			</tbody>
		</table>
	
		<g:if test="${photographer?.priceStrategy?.representsADiscount()}">
			<h4><g:message code="prices.discounts" /></h4> 		
			<p>${photographer?.priceStrategy}</p>			  	
		</g:if>
   </div>
   <div class="modal-footer">
	    <button class="btn btn-info" data-dismiss="modal"><g:message code="close" /></button>	    
   </div>
</div>
</html>